import { post } from './api';
const rootUrl = "/api/ms/";

function doPost(url, data) {
    return post(rootUrl + url, data);
}
//获取会员列表
export function getMembers(page, keyword) {
    if (keyword === undefined) keyword = '';
   return doPost('member/list', { page: page, keyword:keyword });
}
//获取会员信息
export function getMember(id) {
    return doPost('member/info', { id: id });
}
//获取会员卡类型
export function getCardType() {
    return doPost('member/cardtype');
}
export { rootUrl }
